<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台--文章管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>images/style.css" />
    <base target="_self"/>

    <script src='<?php echo isset($skin)?$skin:"";?>js/jquery.min.js'></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/jquery.form.min.js"></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/dist/dialog-min.js"></script>
    <script src="<?php echo isset($skin)?$skin:"";?>js/admin.js"></script>
    <script type="text/javascript">
        <!--
        $(document).ready(function () {
            $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
        });
        //-->
    </script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>/js/validate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate-plugin.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/form.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artDialog.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/iframeTools.js"></script>
<link rel="stylesheet" href="<?php echo isset($skin)?$skin:"";?>js/artdialog.css" type="text/css">
</head>
<body>
<div class="hh6"></div>
<div class="mbx"><span class="fl"><a href="?">子不语商城管理中心</a>--<?php echo isset($name)?$name:"";?> </span><span class="fr"><a href="?c=<?php echo isset($classname)?$classname:"";?>&a=info">添加分栏</a></span> </div>
<table id="bstable" class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<thead> <tr class="n_bt"><td colspan="6" align="center">爱不语商城系统</td></tr>
		<tr><th colspan='6' class="thbt">【<?php echo isset($title)?$title:"";?>】</th></tr>
	</thead>
    <tr>
        <td align="center"  class="thbt hr">ID</td>
        <td align="center"  class="thbt hr">单元</td>
        <td align="center"  class="thbt hr">小区</td>
        <td align="center"  class="thbt hr">排序</td>
        <td align="center"  class="thbt hr">显示</td>
        <td align="center"  class="thbt">操作</td>
    </tr>
    <?php if(is_array($oj))  foreach($oj as $v) { ?>
    <tr>
        <td width='4%'  class="hr" align="center" ><?php echo isset($v->id)?$v->id:"";?></td>
        <td  class="hr" align="center"><?php echo isset($v->name)?$v->name:"";?></td>
        <td  class="hr" align="center"><?php echo isset($v->sname)?$v->sname:"";?></td>
        <td class="hr" align="center"><?php echo isset($v->sort)?$v->sort:"";?></td>
        <td class="hr" align="center"><a href="javascript:void(0);" onclick="is_show(this,<?php echo isset($v->id)?$v->id:"";?>);" class="<?php if($v->show){?>show<?php }else{?>hide<?php }?>"></a>
        </td>
        <td align="center"><a class="mod" href="?c=<?php echo isset($classname)?$classname:"";?>&a=info&id=<?php echo isset($v->id)?$v->id:"";?>">修改</a> <a class="del" href="javascript:void (0);" onclick="del('?c=<?php echo isset($classname)?$classname:"";?>&a=del&id=<?php echo isset($v->id)?$v->id:"";?>');">删除</a></td>
    </tr>
    <?php }?>
</table>
<script type="text/javascript">
    function del(url){
        $.get(url,function(data){
            dalert(data);
        });
    }
    function is_show(obj,id){
        if(obj.className=='ok'){
            obj.className='hide';
            $.get("?c=<?php echo isset($classname)?$classname:"";?>&a=isshow&is_show=0&id="+id);
        }else{
            obj.className='ok';
            $.get("?c=<?php echo isset($classname)?$classname:"";?>&a=isshow&is_show=1&id="+id);
        }
        return true;
    }
</script>
<script type="text/javascript">
    <!--
    $(document).ready(function () {
        $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
    });
    //-->
</script>
</body>
</html>
